package com.view.com {
	import mx.controls.DateField;
	import mx.controls.listClasses.IListItemRenderer;
	
	public class DateEditor extends DateField implements IListItemRenderer{
		public function DateEditor(){
			super();
		}
		
		override public function set data(value:Object):void{
			if(listData){
				var date:Date;
				var incomingVal:Object=value;
				if(incomingVal is String){
					date = new Date(Date.parse(data as String));
					super.data = date;
				}
				else if (incomingVal is Date){
					super.data = incomingVal as Date;
				}
			}
		}
	}
}